//
//  JYTNFCApi.h
//  CQCKJYTMacros
//
//  Created by 九爷 on 2023/9/12.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, JYTNFCOptType) {
    JYTNFCOptTypeRead,//读卡
    JYTNFCOptTypeWrite,//充值
    JYTNFCOptTypeExceptRevert,//异常恢复
};

@interface JYTNFCApi : NSObject

- (void)login:(void(^)(BOOL isSuccess, NSString *error))complation;

- (void)requestCardApdusWithCardTypePath:(NSString *)cardTypePath 
                             apdusResult:(NSDictionary *)adpusResult
                                optType:(JYTNFCOptType)optType
                               transData:(NSDictionary *)transData
                             requestType:(NSString *)requestType
                                     ats:(NSString *)ats
                                     uid:(NSString *)uid
                                   seqNo:(NSString *)seqNo
                               chargeFee:(NSString *)chargeFee
                                 orderNo:(NSString *)orderNo
                                  cardNo:(NSString *)cardNo
                         checkGreyStatus:(BOOL)checkGreyStatus
                                  result:(NSDictionary *)result
                              complation:(void(^)(BOOL isSuccess, BOOL isFinish, NSString *error, NSArray *adpusResultArray, NSDictionary *transData, NSString *requestType, NSString *seqNo, NSString *cardNo, NSString *cardBalance, NSString *cityCode, BOOL isNormalCard, NSString *cardStatusStr, BOOL isGary, NSString *chargeFee, BOOL needRewrite))complation;

@end
